/*
 * @Descripttion: 
 * @version: 
 * @Author: LiuXuFei
 * @Date: 2021-12-23 09:16:09
 * @LastEditors: linZeJian
 * @LastEditTime: 2022-04-26 17:28:15
 */
import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../demo/Home.vue'
import { isInIcestark, getBasename } from '@ice/stark-app';

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/formIndex',
    name: 'Home',
    component: Home
  },
]

const router = new VueRouter({
  mode: 'history',
  base: isInIcestark() ? getBasename() : process.env.BASE_URL,
  routes
})

export default router
